<?php
/*
 * Created on 14.04.2007
 * @filesource: toolbar.extensionicons.html.php
 * @author: Nikolai Plath
 */

//defined( '_VALID_MOS' ) or die( 'Direct Access to this script is not allowed');
defined( '_JEXEC' ) or die( 'Restricted access' );

class menuExtensionicons
{

function list_menu() {
		JToolBarHelper::title( JText::_( 'ExtensionIcons OneFive' ), 'addedit.png' );

		JToolBarHelper::publishList();
		JToolBarHelper::unpublishList();
		JToolBarHelper::addNew();
		JToolBarHelper::editList();
		JToolBarHelper::deleteList();

		JToolBarHelper::divider();

		JToolBarHelper::custom( 'exiconRefresh', 'archive.png', 'archive_f2.png', JText::_('REFRESH'), false );
		JToolBarHelper::custom( 'help', 'help.png', 'default.png', JText::_('HELP'), false );
		JToolBarHelper::custom( 'MediaManager', 'move.png', 'archive_f2.png', JText::_('MEDIA'), false );
		JToolBarHelper::custom( 'ConfigModule', 'config.png', 'archive_f2.png', JText::_('MODULE'), false );
}

function edit_menu()
{
    	
    $cid = JRequest::getVar( 'cid', array(0), '', 'array' );
	$cid = intval($cid[0]);

	$text = ( $cid ? JText::_( 'Edit' ) : JText::_( 'New' ) );

	JToolBarHelper::title( JText::_( 'ExtensionIcon' ).': <small><small>[ '. $text.' ]</small></small>', 'addedit.png' );
    JToolBarHelper::save();
	if ( $cid )
	{
		// for existing articles the button is renamed `close`
		JToolBarHelper::cancel( 'cancel', JText::_('Close') );
	} else
	{
		JToolBarHelper::cancel();
	}
}//function

function help_menu ()
{
	JToolBarHelper::title( JText::_( 'ExtensionIcons' ).': <small>[ '. JText::_('Help').' ]</small>', 'help_header.png' );
	JToolBarHelper::back();
}//function

}//class

?>
